<?php
/*	Конфиг для Epi */
$routes=array(
  array('get','/', 'User/def'),
	
	array('get','/user/?(ur\w{32}|\w{2,25})?/?', 'User/getUser'),
	array('get','/byToken/(tn\w{32})/?', 'User/getUserByToken'),
	array('get','/byEmail/?(([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4})?/?', 'User/getUserByEmail'),
	
	array('get','/token/(tn\w{32})/?', 'User/checkToken'),
	//array('get','/token/(tn\w{32})/?', 'User/getUserByToken'),
	
	array('get','/geo/?([A-Z]{2,2}|\w{34})?/?', 'User/getUsersByGeo', 'page=[all|\d+]'),
	array('get','/near/?(\d+\.\d+)/(\d+\.\d+)/?(\d*)/?', 'User/getUsersNear', 'page=[all|\d+]'),
	
	array('post','/auth/?', 'User/authUser'),
	array('post','/register/?', 'User/registerUser'),
);
return $routes;
?>